package com.crane.oss.common.bean.request;

import com.crane.common.core.utils.Validator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author kevin.wlb
 * @Title AuthCodeRequest.java
 * @Description 获取实名验证码请求对象
 * @createTime 2019年07月26日
 */
@Getter
@Setter
@ToString
@ApiModel(description = "获取实名短信验证码参数")
public class AuthCodeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预留手机号码", name = "reservePhone")
    @NotNull(message = "预留手机号码不能为空")
    @Pattern(regexp = Validator.REGEX_MOBILE, message = Validator.REGEX_MOBILE_MSG)
    private String reservePhone;

    public String getReservePhone() {
        return reservePhone;
    }

    public void setReservePhone(String reservePhone) {
        this.reservePhone = reservePhone;
    }

}
